package com.xx.sg.own.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xx.sg.own.entity.Road;
import com.xx.sg.own.mapper.RoadMapper;
import com.xx.sg.own.service.RoadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoadServiceImpl extends ServiceImpl<RoadMapper, Road> implements RoadService {

    @Autowired
    private RoadMapper roadMapper;

    @Override
    public int updateGeometry(String id, String geometry) {
        return roadMapper.updateGeometry(id, geometry);
    }

    @Override
    public List<Road> getRoadByCircle(Double longitude, Double latitude, Double radius) {
        return roadMapper.getRoadByCircle(longitude, latitude, radius);
    }
}
